package com.qh.cqac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qh.cqac.entity.Instructor;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface InstructorMapper extends BaseMapper<Instructor> {
    @Select("SELECT * FROM instructor WHERE type=#{type} ORDER BY score1 DESC ")
    public List<Instructor> findListByType(@Param("type") Integer type);
}
